package com.lbt.eduorder.client;

import com.lbt.commonuntils.ordervo.CourseWebVoOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@Component  //将这个组件 交给Spring管理
@FeignClient("service-edu")     //表明你要调用那个模块
public interface EduClient {
    @PostMapping("/eduservice/coursefront/getCourseInfoOrder/{id}")
    public CourseWebVoOrder getCourdeInfoOrder(@PathVariable("id") String id);
}
